<?php
/********************************************************
 *
 * 此文件的作用:
 *		公告表的入口
 *
 * @copyright Copyright (c) 2008-2009
 * @author 刘昌功 lcg635@126.com
 *
 ********************************************************/
defined('APP_DIR') or die('404 Not Found');

FLEA::loadClass('Common_Table');

class Table_Householder extends Common_Table {
    var $tableName = 'householder';
    var $primaryKey = 'householder_id';

	function form($data = null) {
		$this->_ui = FLEA::initWebControls();
		$form = array(
			'name' => $this->_ui->control('Textbox', 'name',
				array(
					'value' => $data['name'],
					'required' => 'true',
					'style' => 'width:300px',
					'showName' => '客户称呼'
				),
				true
			),
			'tel' => $this->_ui->control('Textbox', 'tel',
   				array(
   					'style' => 'width:300px',
					'showName' => '固定电话'
    			),
				true
			),
			'mobile' => $this->_ui->control('Textbox', 'mobile',
   				array(
					'required' => 'true',
					'style' => 'width:300px',
					'showName' => '手机号码'
    			),
				true
			)
		);
		return $form;
	}
}
